package org.lds.ers.client;

import java.util.List;

import org.lds.ers.client.model.StakeERSCInfo;
import org.lds.ers.client.model.StakeInfo;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface StakeServiceAsync {
	void insert(StakeInfo stake, AsyncCallback<StakeInfo> async);
	void update(StakeInfo stake, AsyncCallback<Boolean> async);
	void delete(Long id, AsyncCallback<Boolean> async);
	void getAll(AsyncCallback<List<StakeInfo>> async);

	void insertERSC(StakeERSCInfo stake, AsyncCallback<StakeERSCInfo> async);
	void updateERSC(StakeERSCInfo stake, AsyncCallback<Boolean> async);
	void deleteERSC(Long id, AsyncCallback<Boolean> async);
	void getAllERSC(Long stakeID, AsyncCallback<List<StakeERSCInfo>> async);
}
